<?php
?>
<h1 style="text-shadow: 1px 1px 0px #FFF;">История страницы: <br/>"<i style="font-size: 34px"><?=$page->title?></i>"</h1>
<div class="content">
    <a href="/page:<?=$page->name?>.html">&larr; Вернуться к странице</a>
    <table width="100%">
        <?foreach($models as $model):?>
        <tr>
            <td style="vertical-align: middle;border-bottom: 1px dashed #005999">
                <h2><?=date("d.m.Y H:i:s",$model->created_at);?></h2>
                <em><?=$model->title?></em>
            </td>
            <td width="150" style="border-bottom: 1px dashed #005999">
                <div class="m-5"><a class="button" href="/page/restore/id/<?=$model->id?>">Восстановить</a></div>
            </td>
        </tr>
        <?endforeach;?>
    </table>
</div>
